package com.xxx.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Schema(description = "分页对象")
public class MPage {
    @Schema(description = "当前页码")
    private Integer current;
    @Schema(description = "每页显示记录数")
    private Integer size;
    @Schema(description = "总记录数")
    private Integer total;
    @Schema(description = "总页数")
    private Integer pages;
    @Schema(description = "视图集合")
    private List records;
}
